package priv.yiyuan.example.design;

/**
 * Linux 文件操作
 * <p>
 * 被适配对象类
 *
 * @author YiYuan
 * @data 2025/8/8
 * @apoNote
 */
public class LinuxNativeFileOperations {

    public void touchFile(String path) {
        System.out.println("Linux: Creating file at " + path);
    }

    public void rmFile(String path) {
        System.out.println("Linux: Removing file at " + path);
    }

    public String catFile(String path) {
        return "Linux file content from " + path;
    }

    public void echoToFile(String path, String content) {
        System.out.println("Linux: Writing to file at " + path + ", content: " + content);
    }

    public String lsFile(String path) {
        return "Linux file info: " + path + ", permissions: rw-r--r--";
    }
}
